﻿using SinavSistemi.Class;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SinavSistemi
{
    public partial class firmalar : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {


        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            SqlConnection sqlcon = connection.baglanti;
            SqlCommand sqlcmd = new SqlCommand("insert into firmalar (firmaadi,yetkili,tel) values (@firmaadi,@yetkili,@tel)", sqlcon);
            sqlcmd.Parameters.AddWithValue("@firmaadi", txtFirmaadi.Text);
            sqlcmd.Parameters.AddWithValue("@yetkili", txtYetkili.Text);
            sqlcmd.Parameters.AddWithValue("@tel", txtIletisım.Text);

            sqlcon.Open();

            sqlcmd.ExecuteNonQuery();

            sqlcon.Close();

            Response.Write("Başarılı");

        }
    }
}